package com.sg.file.manager.repository.pojo;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * 文件信息
 * Created by asus on 2018/7/6.
 */
@Entity
public class FileInfo{
    /**
     * ID
     */
    @Id
    @Column(nullable = false,length = 32)
    private String fileId;
    /**
     * 原文件名称
     */
    @Column(nullable = false,length = 50)
    private String originalFileName;
    /**
     * 保存文件名称
     */
    @Column(nullable = false,length = 50)
    private String saveFileName;
    /**
     * 文件路径
     */
    @Column(nullable = false,length = 500)
    private String filePath;
    /**
     * 文件大小
     */
    @Column(nullable = false)
    private Long fileSize;
    /**
     * 文件类型image,video,audio
     */
    @Column(nullable = false,length = 15)
    private String fileType;
    /**
     * 文件上传日期
     */
    @Column(nullable = false)
    private Long inDate;

    /**
     * 文件所属项目名称
     */
    @Column
    private String projectName;

    /**
     * 文件后缀
     */
    @Column
    private String fileSuffix;

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public String getOriginalFileName() {
        return originalFileName;
    }

    public void setOriginalFileName(String originalFileName) {
        this.originalFileName = originalFileName;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public Long getFileSize() {
        return fileSize;
    }

    public void setFileSize(long fileSize) {
        this.fileSize = fileSize;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public Long getInDate() {
        return inDate;
    }

    public String getSaveFileName() {
        return saveFileName;
    }

    public void setSaveFileName(String saveFileName) {
        this.saveFileName = saveFileName;
    }

    public void setFileSize(Long fileSize) {
        this.fileSize = fileSize;
    }

    public void setInDate(Long inDate) {
        this.inDate = inDate;
    }

    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    public String getFileSuffix() {
        return fileSuffix;
    }

    public void setFileSuffix(String fileSuffix) {
        this.fileSuffix = fileSuffix;
    }
}
